<?php
import("@.Common.CommonUtil");
// 本类由系统自动生成，仅供测试用途
class BaseAction extends Action {
	
	function _initialize() {
		$Common = new CommonUtil();
		if(!S('siteInfo') || !S('links')){
			//查询站点信息
			$t_siteinfo = D("t_siteinfo");
			$siteinfo = $t_siteinfo->find();
	    	$this->assign("siteInfo",$siteinfo);
	    	
	    	//查询友情链接
	    	$tLinksModel = D('t_links');
	    	$links = $tLinksModel->order("createDate")->select();
	    	$this->assign("links", $links);
	    	
	    	S('links',$links,43200);
	    	S('siteInfo',$siteinfo,43200);
		}else{
			$siteinfo = S('siteInfo');
	    	$this->assign("siteInfo",$siteinfo);
			$links = S('links');
	    	$this->assign("links", $links);
		}
    	
    	//$Common = new CommonUtil();
		//检查浏览器
		//$Common->checkBrower();
	}
	
}